<?php echo form_open(BASE_URL . '/' . $this -> admin . '/create_event_form', array('id' => 'event_nomination_form', 'method' => 'post')); ?>
<!--form starts-->
<div class="form_container">
	<h4>Create Nomination Form</h4>
	<!--row starts-->
	<div class="success_msg" style="margin-left:15px;">
		<?php
		if (isset($error) && $error != '') {
			echo $error;
		} else if ($this -> session -> userdata('event_success')) {
			echo $this -> session -> userdata('event_success');
			$this -> session -> set_userdata('event_success', '');
		}
		?>
	</div>
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="eventname2">Choose Event <span class="asterisk">*</span></label>
			<select class="form-control white" id="choose_event1" name="choose_event1" required>
				<option value="">Choose Event</option>
				<?php if(isset($event_data) && !empty($event_data)){ 
					foreach($event_data as $temp){?>
				<option value="<?php echo $temp['event_id'];?>"><?php echo $temp['event_name'];?></option>
				<?php }}?>
			</select>
			<div class="error" id="err-name"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="eventname2">Form Nomination Status <span class="asterisk">*</span></label>
			<select class="form-control white" id="activation_status1" name="activation_status1" required>
				<option selected="Form is Enabled" value="true">Form is Enabled</option>
				<option value="Form is Disabled">Form is Disabled</option>
			</select>
			<div class="error" id="err-name"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Form Header <span class="asterisk">*</span></label>
			<textarea class="form-control white" id="form_header1" name="form_header1"></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('form_header1', {
					"toolbar" : "Basic"
				});
				//]]>
			</script>
			<div class="error" id="err-desc"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Form Footer</label>
			<textarea class="form-control white" id="form_footer1" name="form_footer1"></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('form_footer1', {
					"toolbar" : "Basic"
				});
				//]]>
			</script>
			<div class="error" id="err-cat"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Thankyou Page</label>
			<textarea class="form-control white" id="thanks_page1" name="thanks_page1"></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('thanks_page1', {
					"toolbar" : "Basic"
				});
				//]]>
			</script>
			<div class="error" id="err-cat"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<!--row starts-->
	<div class="row1">
		<div class="form-group col-sm-12">
			<label for="Description2">Declined Page</label>
			<textarea class="form-control white" id="decline_page1" name="decline_page1"></textarea>
			<script type="text/javascript" src="<?php echo ASSET_URL; ?>ckeditor/ckeditor.js?t=B5GJ5GG"></script>
			<script type="text/javascript">
				//<![CDATA[
				CKEDITOR.replace('decline_page1', {
					"toolbar" : "Basic"
				});
				//]]>
			</script>
			<div class="error" id="err-cat"></div>
		</div>
		<div class="clearfix"></div>
	</div>
	<!--row closed-->
	<?php $this->load->view('admin/manage_event/nominee_particular'); ?>
	<?php $this->load->view('admin/manage_event/nominating_party'); ?>
	<?php $this->load->view('admin/manage_event/disclosure'); ?>
</div>
<!--form closed-->
<div class="space30"></div>
<input type="hidden" name="form_type" value="Nomination" >
<button type="submit" class="btn btn-primary" id="event_nomination_btn">
	Save & Continue
</button>
<?php echo form_close(); ?>